package com.chenjf.userservice;

import com.chenjf.order.dto.OrderDto;
import com.chenjf.order.fegin.OrderOpenFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderOpenFeignController {
    @Autowired
    private OrderOpenFeign orderOpenFeign;

    @GetMapping("/getOrderList")
    public String getOrderList(){
        return orderOpenFeign.userOrders();
    }
    @GetMapping("/getOrderInfo")
    public String getOrderInfo(){
        OrderDto orderDto = new OrderDto();
        orderDto.setOrderNo(11111);
        return orderOpenFeign.orderInfo(orderDto);
    }
}
